CC=/usr/local/bin/arm-apple-darwin-gcc -v
CXX=/usr/local/bin/arm-apple-darwin-g++

CFLAGS=-g -O2 -Wall

LD=$(CC)
LDFLAGS = -framework CoreFoundation \
          -framework Foundation \
          -framework UIKit \
          -framework LayerKit \
          -framework CoreGraphics \
          -framework GraphicsServices \
          -framework CoreSurface \
		  -framework WebCore \
          -lobjc

all:	Chords

Chords:	Chords.o ChordsApplication.o FretBoardView.o ScalesView.o ChordString.o ScalesString.o NotesString.o PrefsView.o ApplicationState.o
	$(LD) $(LDFLAGS) -o $@ $^

%.o:	%.m
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

clean:
		rm -f *.o Chords

